SpatialStream® Code Examples

Heat Mapping

Using the SpatialStream® components Heat Mapping SLD and GetMap, you can create a dynamic heat map with your own data. This example will demonstrate how to build a heat map using a data set containing records of all residential property sales in the County of Los Angeles, CA in the year 2010. The Heat Mapping SLD (Stylized Layer Descriptor) component allows you to tailor the following display parameters of your heat map: size of point, opacity of the overlay, colors used, and intensity of colors. Once the SLD is defined, the GetMap component generates the overlay for your map.

For large data sets, heat maps are an ideal way to visualize data and identify trends quickly. Using the SpatialStream® you can create heat maps using your own data that update when the user changes zoom levels, moves map location, or applies data filters.

GetMap | SLD


var salesDataLayer = new Dmp.Layer.WMSLayer("lasales", "SS", {
antiAlias: true
});
salesDataLayer.addChild("lasales", "DMP_LICENSE/LASALESDATA", "$(ACCOUNT_FOLDER)SLD/HeatmapExample.sld.xml", {
filter: initalFilter, zoomRange: {
min: 1, max: 19
}
});
map.addLayer(salesDataLayer);


Run Sample   View Video   Back To Index